import dayjs from 'dayjs';

export default [
  {
    title: '生产型号',
    key: 'moduleNo'
  },
  {
    key: 'modifyTime',
    title: '录入时间',
    customRender: row => {
      return dayjs(row.modifyTime).format('YYYY-MM-DD HH:mm:ss');
    }
  },
  { key: 'inspectType', title: '检验类型' },
  { key: 'quantity', title: '检验数量(PNL)' },
  { key: 'drawingChangeChecks', title: '工程图变更检查' },
  { key: 'line', title: '线别' },
  { key: 'areaCopperRequired', title: '面铜要求值(um)' },
  { key: 'diameterRequired', title: '孔铜要求值(um)' },
  { key: 'faceCopperActual', title: '面铜实际值(um)' },
  { key: 'porousCopperActual', title: '孔铜实际值(um)' },
  { key: 'isRepairPlating', title: '是否需要补镀(um)' },
  { key: 'blindHoleCopperThick', title: '盲孔镀铜厚度要求值(um)' },
  { key: 'blindHoleCopperPlatingThicknessActual', title: '盲孔镀铜厚度实际值1(um)' },
  { key: 'blindHoleCopperPlatingThicknessActual2', title: '盲孔镀铜厚度实际值2(um)' },
  { key: 'blindHoleCopperPlatingThicknessActual3', title: '盲孔镀铜厚度实际值3(um)' },
  { key: 'sliceSample', title: '切片样本' },
  { key: 'result', title: '判定' },
  { key: 'ngNum', title: '不良数' },
  { key: 'ngRatio', title: '不良率' },
  {
    title: '班别',
    key: 'shiftType',
    customRender: row => {
      return ['白班', '夜班'][row.shiftType];
    }
  },
  {
    title: '检验人',
    key: 'operator'
  },
  {
    title: '审核人',
    key: 'checker'
  },
  {
    title: '审核时间',
    key: 'checkTime'
  },
  {
    title: '备注',
    key: 'remark'
  }
];
